package com.yidao.menu.domain;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang.builder.ToStringBuilder;

import com.yidao.core.domain.BaseObject;

public class MenuItem extends BaseObject{
	
	private static final long serialVersionUID = 1L;

	private String defaultSubItemId;
	
	private String icon;

	private String id;

	private Menu menu;
	
	private String name;
	
	private MenuItem parent;
	
	private List<MenuItem> subMenuItems = new ArrayList<MenuItem>();
	
	private String value;

	public String getDefaultSubItemId() {
		return defaultSubItemId;
	}

	public String getIcon() {
		return icon;
	}
	
	public String getId() {
		return id;
	}
	
	public Menu getMenu() {
		return menu;
	}
	
	public String getName() {
		return name;
	}

	public MenuItem getParent() {
		return parent;
	}

	public List<MenuItem> getSubMenuItems() {
		return subMenuItems;
	}

	public String getValue() {
		return value;
	}

	public void setDefaultSubItemId(String defaultSubItemId) {
		this.defaultSubItemId = defaultSubItemId;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setMenu(Menu menu) {
		this.menu = menu;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setParent(MenuItem parent) {
		this.parent = parent;
	}

	public void setSubMenuItems(List<MenuItem> subMenuItems) {
		this.subMenuItems = subMenuItems;
	}

	public void setValue(String value) {
		this.value = value;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
